package com.hkts.naturalgas.dictionaries.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import javax.persistence.Transient;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Map;

/**
 * <p>
 *
 * </p>
 *
 * @author yck
 * @since 2021-06-23
 */
public class HktsEnvironmentProtectionItem extends Model<HktsEnvironmentProtectionItem> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private String id;
    /**
     * 字段描述
     */
    private String filedDescribe;
    /**
     * 字段名称
     */
    private String fieldName;
    /**
     * 数据类型
     */
    private String dataType;
    /**
     * 创建时间
     */
    private LocalDateTime createTime;
    /**
     * 工控对接字段
     */
    private String correspondingField;
    /**
     * 是否导出
     */
    private String isExport;
    /**
     * 是否默认（id,time,字段为默认字段）
     */
    private String isDefault;
    /**
     * 是否显示
     */
    private String isShow;
    /**
     * 是否启用
     */
    private String isEnable;
    /**
     * 字典表主键
     */
    private String tableId;
    /**
     * 排序字段
     */
    private Integer filedOrder;

    /**
     * 单位
     */
    private String filedUnit;

    /**
     * 描述id
     */
    private Integer describeId;


    /**
     * 是否为市局要的字段
     */
    private String isCity;
    /**
     * 是否为大气办要的字段
     */
    private String isAtmosphere;

    public Integer getDescribeId() {
        return describeId;
    }
    @Transient
    @TableField(exist=false)
    private String wd;
    @Transient
    @TableField(exist=false)
    private String gl;
    @Transient
    @TableField(exist=false)
    private String time;
    @Transient
    @TableField(exist=false)
    private String other;
    @Transient
    @TableField(exist=false)
   private Object realValue;

    @Transient
    @TableField(exist=false)
    private Object setValue;
    @Transient
    @TableField(exist=false)
    private Object maxValue;
    @Transient
    @TableField(exist=false)
    private Object minValue;

    public Object getMaxValue() {
        return maxValue;
    }

    public void setMaxValue(Object maxValue) {
        this.maxValue = maxValue;
    }

    public Object getMinValue() {
        return minValue;
    }

    public void setMinValue(Object minValue) {
        this.minValue = minValue;
    }

    public Object getRealValue() {
        return realValue;
    }

    public void setRealValue(Object realValue) {
        this.realValue = realValue;
    }

    public Object getSetValue() {
        return setValue;
    }

    public void setSetValue(Object setValue) {
        this.setValue = setValue;
    }

    public String getIsCity() {
        return isCity;
    }

    public void setIsCity(String isCity) {
        this.isCity = isCity;
    }

    public String getIsAtmosphere() {
        return isAtmosphere;
    }

    public void setIsAtmosphere(String isAtmosphere) {
        this.isAtmosphere = isAtmosphere;
    }

    public String getOther() {
        return other;
    }

    public void setOther(String other) {
        this.other = other;
    }

    public void setDescribeId(Integer describeId) {
        this.describeId = describeId;
    }

    public String getGl() {
        return gl;
    }

    public void setGl(String gl) {
        this.gl = gl;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }



    public String getWd() {
        return wd;
    }

    public void setWd(String wd) {
        this.wd = wd;
    }

    /**
     * 数据是否需要仿真处理 1 需要 0不需要 默认需要
     */
    private String needDeal;

    private String setType;

    public String getSetType() {
        return setType;
    }

    public void setSetType(String setType) {
        this.setType = setType;
    }

    public String getNeedDeal() {
        return needDeal;
    }

    public void setNeedDeal(String needDeal) {
        this.needDeal = needDeal;
    }

    public String getFiledUnit() {
        return filedUnit;
    }

    public void setFiledUnit(String filedUnit) {
        this.filedUnit = filedUnit;
    }

    public Integer getFiledOrder() {
        return filedOrder;
    }

    public void setFiledOrder(Integer filedOrder) {
        this.filedOrder = filedOrder;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFiledDescribe() {
        return filedDescribe;
    }

    public void setFiledDescribe(String filedDescribe) {
        this.filedDescribe = filedDescribe;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getCorrespondingField() {
        return correspondingField;
    }

    public void setCorrespondingField(String correspondingField) {
        this.correspondingField = correspondingField;
    }

    public String getIsExport() {
        return isExport;
    }

    public void setIsExport(String isExport) {
        this.isExport = isExport;
    }

    public String getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(String isDefault) {
        this.isDefault = isDefault;
    }

    public String getIsShow() {
        return isShow;
    }

    public void setIsShow(String isShow) {
        this.isShow = isShow;
    }

    public String getIsEnable() {
        return isEnable;
    }

    public void setIsEnable(String isEnable) {
        this.isEnable = isEnable;
    }

    public String getTableId() {
        return tableId;
    }

    public void setTableId(String tableId) {
        this.tableId = tableId;
    }

    public static final String ID = "id";

    public static final String FILED_DESCRIBE = "filed_describe";

    public static final String FIELD_NAME = "field_name";

    public static final String DATA_TYPE = "data_type";

    public static final String CREATE_TIME = "create_time";

    public static final String CORRESPONDING_FIELD = "corresponding_field";

    public static final String IS_EXPORT = "is_export";

    public static final String IS_DEFAULT = "is_default";

    public static final String IS_SHOW = "is_show";

    public static final String IS_ENABLE = "is_enable";

    public static final String TABLE_ID = "table_id";

    public static final String FILED_ORDER = "filed_order";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "HktsEnvironmentProtectionItem{" +
                ", id=" + id +
                ", filedDescribe=" + filedDescribe +
                ", fieldName=" + fieldName +
                ", dataType=" + dataType +
                ", createTime=" + createTime +
                ", correspondingField=" + correspondingField +
                ", isExport=" + isExport +
                ", isDefault=" + isDefault +
                ", isShow=" + isShow +
                ", isEnable=" + isEnable +
                ", tableId=" + tableId +
                ", filedOrder=" + filedOrder +
                "}";
    }
}
